package com.collabscm.waf.app.web.servlet;

import java.io.IOException;

import javax.servlet.Filter;
import javax.servlet.FilterChain;
import javax.servlet.FilterConfig;
import javax.servlet.ServletException;
import javax.servlet.ServletRequest;
import javax.servlet.ServletResponse;
import javax.servlet.http.HttpServletRequest;

/**
 * 访问控制过滤器，此Filter首先要验证用户的登录信息，然后设置ApplicationContextUtils的UserInfo
 * @author Zeng Raoxing
 */
public class AccessControlFilter implements Filter {

	@Override
	public void destroy() {

	}

	@Override
	public void doFilter(ServletRequest request, ServletResponse response, FilterChain chain) throws IOException,
			ServletException {
		HttpServletRequest req = (HttpServletRequest) request;
		req.getCookies();
	}

	@Override
	public void init(FilterConfig filterConfig) throws ServletException {

	}

}
